package ddd

import (
	"gitee.com/alex_li/zangjingge/internal/api/save"
	"gitee.com/alex_li/zangjingge/internal/api/upload"
	"gitee.com/alex_li/zangjingge/internal/api/viewer"
	"github.com/lishimeng/app-starter/server"
)

func Router(root server.Router) {

	api := root.Path("/api")

	upload.Router(api.Path("/u"))
	save.Router(api.Path("/s"))
	viewer.Router(api.Path("/f"))
}
